package com.zhc.dejingapi.controller;


import com.zhc.dejingapi.entity.vo.SelectVo;
import com.zhc.dejingapi.service.QingDepartmentService;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 轻流部门档案 前端控制器
 * </p>
 *
 * @author zhc
 * @since 2024-10-11
 */
@RestController
@RequestMapping("/qing-department-entity")
@CrossOrigin
public class QingDepartmentController {

    @Resource
    private QingDepartmentService qingDepartmentService;

    @PostMapping("/getDepartment")
    public List<SelectVo> getDepartment(){
        return qingDepartmentService.getDepartment();
    }

}
